# Project Needs a name ofcourse
project(plasma-iching)
 
# Find the required Libaries
find_package(KDE4 REQUIRED)
include(KDE4Defaults)
 
add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
include_directories(
   ${CMAKE_SOURCE_DIR}
   ${CMAKE_BINARY_DIR}
   ${KDE4_INCLUDES}
   )
 
# We add our source code here
set(iching_SRCS trigramselectorgenerator.cpp trigramselector.cpp linebuttongroupgenerator.cpp abstractgenerator.cpp relationship.cpp datagram.cpp line.cpp trigram.cpp hexagram.cpp iching.cpp)

kde4_add_ui_files(iching_SRCS forms/translatorselectorform.ui)

kde4_add_plugin(plasma_applet_iching ${iching_SRCS})

target_link_libraries(plasma_applet_iching 
                      ${KDE4_PLASMA_LIBS} ${KDE4_KDEUI_LIBS})
 
install(TARGETS plasma_applet_iching
        DESTINATION ${PLUGIN_INSTALL_DIR})
 
install(FILES plasma-applet-iching.desktop
        DESTINATION ${SERVICES_INSTALL_DIR})

#add_subdirectory(rsc)

install(DIRECTORY rsc/
        DESTINATION ${PLUGIN_INSTALL_DIR}/plasma_applet_iching)